package com.vegetable.modules.entity.wx;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统用户部门关联实体
 *
 * @author Qoder
 */
@Data
@TableName("sys_user_department")
@ApiModel(value = "系统用户部门关联")
public class SysUserDepartment implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    private Long id;

    /**
     * 系统用户ID
     */
    @TableField("user_id")
    @ApiModelProperty(value = "系统用户ID")
    private Long userId;

    /**
     * 部门ID
     */
    @TableField("department_id")
    @ApiModelProperty(value = "部门ID")
    private Long departmentId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}